/**
 * ZHU framework. Copyright 2012-, all rights reserved.
 *
 * $Id: WebContextListener.java 17 2012-08-07 02:58:30Z zhuxiaopeng $
 * $Revision: 17 $
 * $Date: 2012-08-07 10:58:30 +0800 (二, 2012-08-07) $
 * $Author: zhuxiaopeng $
 */
package zhu.framework.web.servlet;

import javax.servlet.*;
import javax.servlet.annotation.*;

import zhu.framework.web.*;

/**
 * <p>
 * </p>
 * 
 * @author $Author: zhuxiaopeng $
 * @version $Revision: 17 $ - $Date: 2012-08-07 10:58:30 +0800 (二, 2012-08-07) $
 */
@WebListener
public final class WebContextListener implements ServletContextListener {

	/*
	 * (non-Javadoc)
	 * 
	 * @see javax.servlet.ServletContextListener#contextDestroyed(javax.servlet.
	 * ServletContextEvent)
	 */
	@Override
	public void contextDestroyed(final ServletContextEvent arg0) {

	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * javax.servlet.ServletContextListener#contextInitialized(javax.servlet
	 * .ServletContextEvent)
	 */
	@Override
	public void contextInitialized(final ServletContextEvent sce) {
		final WebContext webContext = new HttpWebContext();
		WebContext.initInstance(webContext);
	}

}
